package com.project.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.LogBean;
import org.springframework.stereotype.Repository;

import java.time.LocalDate;
import java.util.List;

/**
 * 日志持久层
 */
@Repository
public interface LogDao extends BaseMapper<LogBean> {
    /**
     * 分页显示所有日志信息
     * @return
     */
    List<LogBean> findAllLog();


    /**
     * 根据起始、结束日期分页显示日志信息
     * @param startTime
     * @param endTime
     * @return
     */
    List<LogBean> findTime(LocalDate startTime, LocalDate endTime);

}
